<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <?php include(ROOT_PATH . 'views/user/head.php'); ?>
    <?php
    if (file_exists(ROOT_PATH . 'views/user/' . $tpl . '_head.php')) {
        include(ROOT_PATH . 'views/user/' . $tpl . '_head.php');
    }
    ?>
</head>
<body>
<input type="hidden" isredirect='0' id="hidLocation" value="" />
<?php include(ROOT_PATH . 'views/user/header.php'); ?>
<div class="content clearfix">

    <div class="nav-left clearfix padtop fl">
        <nav class="leftnav">
            <ul class="navlist">
                <?php foreach ($this->menu_tree as $key => $tree){?>
                    <li class="navlist-item">
                        <div class="navlist-head clearfix">
                            <!-- <div class="head-icon">
                                <i class="iconfont <?php echo ($key)?'icon-guanlizhongxin':'icon-yonghuzhongxin';?>"></i>
                            </div> -->
                            <div class="head-font"><?php echo $tree['title']; ?></div>
                        </div>
                        <?php if (isset($tree['child']) && count($tree['child']) > 0): ?>
                            <ul class="navsublist">
                            <?php if($this->vip>0){?>
                                <?php foreach ($tree['child'] as $child): ?>
                                    <li class="sublist-item<?php echo ($this->is_current($_GET['act']) == $child['top_id']) ? ' active' : NULL; ?>">
                                        <!--<i class="iconfont icon-yonghuzhongxin"></i>-->
                                        <a href="<?php echo ROOT_URL.'?con=user&act='.$child['name'];?>"><?php echo $child['title'];?></a>
                                    </li>
                                <?php endforeach; ?>
                            <?php }else{?>
                                <?php foreach ($tree['child'] as $child): ?>
                                    <?php if($child['name']!='memberOrder'){?> 
                                    <li class="sublist-item<?php echo ($this->is_current($_GET['act']) == $child['top_id']) ? ' active' : NULL; ?>">
                                        <!--<i class="iconfont icon-yonghuzhongxin"></i>-->
                                        <a href="<?php echo ROOT_URL.'?con=user&act='.$child['name'];?>"><?php echo $child['title'];?></a>
                                    </li>
                                    <?php }?>
                                <?php endforeach; ?>    
                            <?php }?>
                            </ul>
                        <?php endif; ?>
                    </li>
                <?php } ?>
            </ul>
        </nav>
    </div>
    <div class="main clearfix padtop">
        <div class="main-body clearfix">
            <?php include(ROOT_PATH . 'views/user/' . $tpl . '.php'); ?>
        </div>
    </div>
</div>
<?php include(ROOT_PATH . 'views/index/footer.php'); ?>
<?php include(ROOT_PATH . 'views/index/loginModal.php'); ?>
<?php include(ROOT_PATH . 'views/index/provision.php'); ?>

<div role="jdialog" id="alert" class="dialog dialog-sm">
		<a data-button="dialog-close" data-target="#alert" class="dialog-close" ><i class="ui-icon ui-icon-close"></i></a>
		<div class="dialog-container">
			<div class="dialog-message" default-class="dialog-message" id="alert_message"></div>
		</div>
		<div class="dialog-footer">
			<a href="" class="dialog-btn" data-button="dialog-close" data-target="#alert">确定</a>
		</div>
	</div>

	<div role="jdialog" id="confirm" class="dialog dialog-sm">
		<a data-button="dialog-close" data-confirm = "N" data-target="#confirm" class="dialog-close" ><i class="ui-icon ui-icon-close"></i></a>
		<div class="dialog-container">
			<div class="dialog-message" default-class="dialog-message" id="confirm_message"></div>
		</div>
		<div class="dialog-footer">
			<a href="" class="dialog-btn" data-button="dialog-close" data-confirm = "Y" data-label='Y' data-target="#confirm">是</a>
			<a href="" class="dialog-btn" data-button="dialog-close" data-confirm = "N" data-label='N' data-target="#confirm">否</a>
		</div>
	</div>


	<a href="" target="_blank"  style="display:none"><span id="new_win_open"></span></a>
</body>
<?php include(ROOT_PATH . 'views/user/layoutJs.php'); ?>
<div style="display: none">;
    <script src="http://s95.cnzz.com/z_stat.php?id=1260411464&web_id=1260411464" language="JavaScript"></script>
    <script src="https://s13.cnzz.com/z_stat.php?id=1271290888&web_id=1271290888" language="JavaScript"></script>
</div>
</html>
